package com.news.entity;

public class User {
	// 用户id
	private int userId;
	// 用户名
	private String userName;
	// 用户密码
	private String userPass;
	// 用户头像
	private String userAvatar;

	// getAndset
	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPass() {
		return userPass;
	}

	public void setUserPass(String userPass) {
		this.userPass = userPass;
	}

	public String getUserAvatar() {
		return userAvatar;
	}

	public void setUserAvatar(String userAvatar) {
		this.userAvatar = userAvatar;
	}

	// 构造方法
	public User(int userId, String userName, String userPass, String userAvatar) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.userPass = userPass;
		this.userAvatar = userAvatar;
	}

	public User(String userName, String userPass, String userAvatar) {
		super();
		this.userName = userName;
		this.userPass = userPass;
		this.userAvatar = userAvatar;
	}

	public User() {
		super();
	}

	public User(int userId) {
		super();
		this.userId = userId;
	}

	// toString方法
	@Override
	public String toString() {
		return "User [userId=" + userId + ", userName=" + userName + ", userPass=" + userPass + ", userAvatar="
				+ userAvatar + "]";
	}

}
